package com.zhx.threadcoreknowledge.uncaughtexception;

/**
 * @author ：zhanghaixuan
 * @date ：Created in 2019-10-04 10:36
 * 用途         ： 单线程,抛出,处理,有异常堆栈
 * 多线程,子线程发生异常:
 */
public class ExceptionInChileThread implements Runnable{

    @Override
    public void run() {
        throw new RuntimeException("报错了");
    }

    public static void main(String[] args) {
        new Thread(new ExceptionInChileThread()).start();

        for (int i = 0; i < 1000; i++) {
            System.out.println(i);
         }
    }
}
